<template>
    <button @click="$router.replace('/detail')">replace跳转到详情页</button>
    <button @click="$router.push('/detail?id=100&name=limin')">push跳转到详情页</button>
    <button @click="$router.back()">返回</button>
</template>

<script setup>

</script>

<style lang="scss" scoped></style>